package com.pmcc.platform.shopping.repository;

import com.pmcc.platform.shopping.entity.ShopLibory;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import javax.xml.crypto.Data;
import java.util.Date;
import java.util.List;

public interface ShopLiboryRepository extends JpaRepository<ShopLibory,String> {

    List<ShopLibory> findAllByShopIdAndDelFlag(String shopId, String delFlag);

    Page<ShopLibory> findAllByShopIdAndDelFlag(String shopId, String delFlag, Pageable pageable);

    Page<ShopLibory>findAllByShopIdAndDelFlagAndCreateTimeBetween(String shopId, String delFlag, Date start, Date end, Pageable pageable);

    List<ShopLibory> findAllByShopIdAndGoodsIdAndDelFlag(String shopid,String goodsId,String delFlag);





}
